import { createRouter, createWebHashHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import Draw from '@/components/Draw.vue'
import Hello from '@/components/Hello.vue'
import HelloWorld from '@/components/HelloWorld.vue'

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/draw',
    name: 'draw',
    component: Draw
  },
  {
    path: '/hello',
    name: 'hello',
    component: Hello
  },
  {
    path: '/helloworld',
    name: 'helloworld',
    component: HelloWorld
  },
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
